package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPipeNetworkMonitorMapper;
import com.ruoyi.system.domain.DispatchPipeNetworkMonitor;
import com.ruoyi.system.service.IDispatchPipeNetworkMonitorService;

/**
 * 管网监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPipeNetworkMonitorServiceImpl implements IDispatchPipeNetworkMonitorService 
{
    @Autowired
    private DispatchPipeNetworkMonitorMapper dispatchPipeNetworkMonitorMapper;

    /**
     * 查询管网监控
     * 
     * @param pipeNetworkMonitorId 管网监控主键
     * @return 管网监控
     */
    @Override
    public DispatchPipeNetworkMonitor selectDispatchPipeNetworkMonitorByPipeNetworkMonitorId(Long pipeNetworkMonitorId)
    {
        return dispatchPipeNetworkMonitorMapper.selectDispatchPipeNetworkMonitorByPipeNetworkMonitorId(pipeNetworkMonitorId);
    }

    /**
     * 查询管网监控列表
     * 
     * @param dispatchPipeNetworkMonitor 管网监控
     * @return 管网监控
     */
    @Override
    public List<DispatchPipeNetworkMonitor> selectDispatchPipeNetworkMonitorList(DispatchPipeNetworkMonitor dispatchPipeNetworkMonitor)
    {
        return dispatchPipeNetworkMonitorMapper.selectDispatchPipeNetworkMonitorList(dispatchPipeNetworkMonitor);
    }

    /**
     * 新增管网监控
     * 
     * @param dispatchPipeNetworkMonitor 管网监控
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPipeNetworkMonitor(DispatchPipeNetworkMonitor dispatchPipeNetworkMonitor)
    {
        return dispatchPipeNetworkMonitorMapper.insertDispatchPipeNetworkMonitor(dispatchPipeNetworkMonitor);
    }

    /**
     * 修改管网监控
     * 
     * @param dispatchPipeNetworkMonitor 管网监控
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPipeNetworkMonitor(DispatchPipeNetworkMonitor dispatchPipeNetworkMonitor)
    {
        return dispatchPipeNetworkMonitorMapper.updateDispatchPipeNetworkMonitor(dispatchPipeNetworkMonitor);
    }

    /**
     * 批量删除管网监控
     * 
     * @param pipeNetworkMonitorIds 需要删除的管网监控主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPipeNetworkMonitorByPipeNetworkMonitorIds(Long[] pipeNetworkMonitorIds)
    {
        return dispatchPipeNetworkMonitorMapper.deleteDispatchPipeNetworkMonitorByPipeNetworkMonitorIds(pipeNetworkMonitorIds);
    }

    /**
     * 删除管网监控信息
     * 
     * @param pipeNetworkMonitorId 管网监控主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPipeNetworkMonitorByPipeNetworkMonitorId(Long pipeNetworkMonitorId)
    {
        return dispatchPipeNetworkMonitorMapper.deleteDispatchPipeNetworkMonitorByPipeNetworkMonitorId(pipeNetworkMonitorId);
    }
}
